
<div id="section-title">
	<div class="wrapper">
		<div class="grid-25">
		
		</div>
	</div>
</div>

<div id="body">
	<div class="wrapper">
		<div class="grid-18 orders">
			
			<table class="grid">
				<thead>
					<tr>
						<th># ID</th>
						<th>Resumen</th>
						<th>Cliente</th>
						<th>Total (envio inc.)</th>
						<th>&nbsp;</th>
					</tr>
				</thead>
				<tbody>
				<?php foreach($orders AS $row): ?>
					<tr>
						<td><?php echo $row['Order']['id']; ?></td>
						<td></td>
						<td><?php echo $row['Order']['customer_firstname']; ?></td>
						<td><?php echo $row['Order']['currency_value']; ?></td>
						<td>
							<?php echo $html->link(__('Ver detalle', true), array('controller' => 'orders', 'action' => 'dashboard_details', $row['Order']['id'])); ?>
						</td>
					</tr>
				<?php endforeach; ?>
				</tbody>
			</table>
			
		</div>
		<div class="grid-7">
		
			<div class="module box search">
			
			</div>
		
			<div class="module">
				<h6><?php __('Estados de órdenes'); ?></h6>
				<ul>
					<li class="all"><?php echo $html->link(__('Todas', true), array('shop' => $this->params['shop'], 'controller' => 'orders', 'action' => 'dashboard_index')); ?></li>
					<li class="pending"><?php echo $html->link(__('Pendientes', true), array('shop' => $this->params['shop'], 'controller' => 'orders', 'action' => 'dashboard_index', 'type' => 'pending')); ?></li>
					<li class="void"><?php echo $html->link(__('Anuladas', true), array('shop' => $this->params['shop'], 'controller' => 'orders', 'action' => 'dashboard_index', 'type' => 'void')); ?></li>
					<li class="accepted"><?php echo $html->link(__('Aceptadas', true), array('shop' => $this->params['shop'], 'controller' => 'orders', 'action' => 'dashboard_index', 'type' => 'accepted')); ?></li>
					<li class="released"><?php echo $html->link(__('Despachadas', true), array('shop' => $this->params['shop'], 'controller' => 'orders', 'action' => 'dashboard_index', 'type' => 'released')); ?></li>
				</ul>
			</div>
			
			<div class="module">
				<h3><?php __('Exportar'); ?></h3>
				<p>
					<?php echo $html->link(__('CVS (Excel)', true), array(), array('class' => 'btn')); ?>
				</p>
			</div>
			
		</div>
	</div>
</div>
